package clases;

import java.util.Comparator;

public class ComparadorNota implements Comparator{

	@Override
	public int compare(Object o1, Object o2) {
		Alumno a1,a2;
		Integer i1,i2;
		a1=(Alumno) o1;
		a2=(Alumno) o2;
		i1= new Integer(a1.get_notafinal());
		i2= new Integer(a2.get_notafinal());
		return i2.compareTo(i1);
	}
	
	 public boolean equals(Object o) {
		    return this == o;
	 }
}